<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";

	String message = (String) request.getAttribute("message");
	if (null == message) {
		message = "";
	}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml">
	<HEAD>
		<base href="<%=basePath%>">
		<TITLE>用户登录</TITLE>
		<META content="text/html; charset=gb2312" http-equiv=Content-Type>
		<STYLE type=text/css>
BODY {
	MARGIN: 0px
}

.style1 {
	FONT-STYLE: italic
}

.style2 {
	COLOR: #ffffff
}

BODY {
	COLOR: #333333;
	FONT-SIZE: 12px
}

TD {
	COLOR: #333333;
	FONT-SIZE: 12px
}

TH {
	COLOR: #333333;
	FONT-SIZE: 12px
}

.line {
	BORDER-BOTTOM: #526c7b 1px dashed;
	BORDER-LEFT: #526c7b 1px dashed;
	BORDER-TOP: #526c7b 1px dashed;
	BORDER-RIGHT: #526c7b 1px dashed
}
</STYLE>

		<SCRIPT>
function checkemail(form)
{
//文本框的判断
  if(!form.UserName.value){
    alert("请输入您的用户名！");
    form.UserName.focus();
	return false;
  }
  if(!form.PassWord.value){
    alert("请输入您的密码！");
    form.PassWord.focus();
	return false;
  }
  if(!form.random.value){
    alert("请输入验证码！");
    form.random.focus();
	return false;
  }
}
</SCRIPT>
		<LINK rel=stylesheet type=text/css href="css/post.css">
		<META name=GENERATOR content="MSHTML 8.00.6001.19222">
	</HEAD>
	<BODY>
		<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
			<TBODY>
				<TR>
					<TD height=1>
						<IMG src="" width=1 height=1>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE border=0 cellSpacing=0 cellPadding=0 width="62%" align=center
			height=230>
			<TBODY>
				<TR>
					<TD vAlign=top width="81%">
						<BR>
						<TABLE class=line border=0 cellSpacing=1 cellPadding=0 width=400
							align=center>
							<TBODY>
								<TR>
									<TD bgColor=#333333 height=26 align=center>
										<SPAN class=style2>用户登录</SPAN>
									</TD>
								</TR>
								<TR>
									<TD height=49>
										<FORM id=form1 onsubmit="return checkemail(this);" method=post
											name=form1 action="doUser.do?opers=login">
											<TABLE border=0 cellSpacing=2 cellPadding=0 width="96%"
												align=center>
												<TBODY>
													<TR>
														<TD width="28%" align=center>
															用户名：
														</TD>
														<TD colSpan=2>
															<INPUT id=UserName maxLength=14 size=20 type=text
																name=UserName>
														</TD>
													</TR>
													<TR>
														<TD align=center>
															密&nbsp;&nbsp;码：
														</TD>
														<TD colSpan=2>
															<INPUT id=PassWord maxLength=14 size=20 type=password
																name=PassWord>
														</TD>
													</TR>
													<TR>
														<TD align=center>
															验证码：
														</TD>
														<TD width="12%">
															<SPAN class=zi_hhui_21><SPAN
																class="zi_hui_21_c style1"> <input type="text"
																		name="random" id="random" size="8"> </SPAN> </SPAN>
														</TD>
														<TD width="60%">
															<img id="xMan" src="imgcode"
																onclick="javascript:changeOne();"></img>
															<a href="javascript:changeOne();">换一张</a>
															<script type="text/javascript">
																				function changeOne(){	
																					$('#xMan').attr('src','imgcode');
																				}
																			</script>
														</TD>
													</TR>
													<TR>
														<TD colSpan=3 align="center">
															<font color="red"><%=message%></font>
														</TD>
													</TR>
													<TR>
														<TD colSpan=3 align="center">
															<INPUT value=登录 type=submit name=Submit>
															<INPUT value=重来 type=reset name=Submit2>
														</TD>
													</TR>
												</TBODY>
											</TABLE>
										</FORM>
									</TD>
								</TR>
							</TBODY>
						</TABLE>
						<TABLE border=0 cellSpacing=0 cellPadding=0 width="100%">
							<TBODY>
								<TR>
									<TD height=36 align="center">
										<A class=zi_lan14c href="index.jsp">返回首页</A>&nbsp;&nbsp;&nbsp;
										<A class=zi_14_zong href="regist.jsp">如果您还不是会员,请点击注册</A>
									</TD>
								</TR>
							</TBODY>
						</TABLE>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
		<TABLE border=0 cellSpacing=0 cellPadding=0 width="62%" align=center
			height=21>
			<TBODY>
				<TR>
					<TD bgColor=#efefef align="center">
						联系我：
						<a target=blank
							href=http://wpa.qq.com/msgrd?V=1&Uin=251637313&Site=http://www.17113.cc&Menu=yes>
							<img border="0" SRC=http://wpa.qq.com/pa?p=1:251637313:16
								alt="点击这里给我发消息">
						</a>
					</TD>
				</TR>
			</TBODY>
		</TABLE>
	</BODY>
</HTML>
